using System;
using System.Collections.Generic;
using System.Text;
using Web.Core.Providers;
using System.Collections;

namespace Web.Core.Objects
{
    public class Languages
    {
        public static ArrayList GetAllLanguages()
        {
            return DataProvider.GetInstance().GetLanguages(0, "");
        }

        public static Language GetLanguageByName(string name)
        {
            return DataProvider.GetInstance().GetLanguages(0, name)[0] as Language;
        }
    }
}
